/**
 * @file lv_battery_private.h
 *
 */

#ifndef LV_BATTERY_PRIVATE_H
#define LV_BATTERY_PRIVATE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "lv_battery.h"

#if LV_USE_BATTERY != 0
#include "../../../lvgl/src/core/lv_obj_private.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

/** Toolbar data */
struct _lv_battery_t{
    lv_obj_t obj;
    const lv_battery_cfg_t *cfg;
    lv_timer_t *timer;
    int32_t pct;
    lv_battery_dir_t dir;          /*Direction of battery pattern*/
    char pct_buf[8];
};

typedef struct _lv_battery_t lv_battery_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#endif /* LV_USE_BATTERY != 0 */

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_BATTERY_PRIVATE_H*/
